package org.example.core;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class BusRoutesRefreshEventListener2 implements ApplicationListener<RouteEvent2> {

    @Override
    public void onApplicationEvent(RouteEvent2 routeEvent) {
        String message = routeEvent.getMessage();
        log.info("接受数据2,message:{}",message);
        //具体的业务逻辑
    }
}